<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>	

    	 <div style="width:100%">
		<table style="width:98%"><tr height="25px">
				<%if(request.getAttribute("flist")==null){}else{
		        List<Fieldres> lis=(List<Fieldres>)request.getAttribute("flist");
		        List<String[]> fx=(List<String[]>)request.getAttribute("fuxuan");
		        		int i=0;
		        		int num=3;
					for(Fieldres c:lis){
					String sectype=c.getSectype();
					if(sectype.equals("1")){//单选
					if(num>0){
						num--;	
					}else{num=2;%>
						</tr><tr height="25px">
					<%}%>
						<td width="14%"><%=c.getFieldname()%>:</td>
						<td  width="18%">
						<select name="danxuan" data-danfield="<%=c.getFieldcode()%>" style="width:98%;height:98%">
						<option value="">请选择</option>
						<%String[] str=fx.get(i++);
						for(int t=0;t<str.length;t++){%>
							<option  value="<%=str[t]%>"><%=str[t]%></option>
						<%}%>
						</select>
						</td>
					<%}
					else if(sectype.equals("2")){//复选
						if(num>0){
							num--;
						}else{num=2;%>
							</tr><tr height="25px">
						<%}%>
						<td  width="14%"><%=c.getFieldname()%>:</td>
						<td  width="18%">
						<select name="fuxuan" data-fufield="<%=c.getFieldcode()%>" style="width:98%;height:98%">
						<option value="">请选择</option>
						<%String[] str=fx.get(i++);
						for(int t=0;t<str.length;t++){%>
							<option  value="<%=str[t]%>"><%=str[t]%></option>
						<%}%>
						</select>
						</td>
					<%}
					else if(sectype.equals("5")){//数字
						if(num>1){
							num-=2;
						}else{num=1;%>
							</tr><tr height="25px">
						<%}%>
						<td  width="14%"><%=c.getFieldname()%>(小):</td>
						<td  width="18%"><input type="text"  name="szmin" data-szmin="<%=c.getFieldcode()%>" style="width:98%;height:98%"/></td>
						<td  width="14%"><%=c.getFieldname()%>(大):</td>
						<td  width="18%"><input type="text"  name="szmax" data-szmax="<%=c.getFieldcode()%>" style="width:98%;height:98%"/></td>
					<%}
					else if(sectype.equals("4")){//字符
						if(num>0){
							num--;
						}else{num=2;%>
							</tr><tr height="25px">
						<%}%>
						<td  width="14%"><%=c.getFieldname()%>:</td>
						<td width="18%"><input type="text"  name="zf" data-zfval="<%=c.getFieldcode()%>" style="width:98%;height:98%"/></td>
					<%}
					else if(sectype.equals("3")){//日期
						if(num>1){
							num-=2;
						}else{num=1;%>
							</tr><tr height="25px">
						<%}%>
						<td  width="14%"><%=c.getFieldname()%>(始):</td>
						<td  width="18%"><input name="riqimin" data-rqmin="<%=c.getFieldcode()%>" style="width:98%;height:98%"/></td>
						<td  width="14%"><%=c.getFieldname()%>(终):</td>
						<td  width="18%"><input  name="riqimax" data-rqmax="<%=c.getFieldcode()%>" style="width:98%;height:98%"/></td>
					<%}}}%>					
				</tr>
				<tr height="25px" id="jfrow"> </tr>	
				<tr height="25px" id="xhrow"></tr>
				</table>
				<!--  <div id="jfsec">
				</div>-->
		<table>
				<tr><td><strong>请选择需显示的字段：</strong></td></tr>
				<tr><td>					
				<%if(request.getAttribute("fslist")!=null){
			        List<Fieldres> li=(List<Fieldres>)request.getAttribute("fslist");
					for(Fieldres d:li){
						if(d.isIfavail()){	
							%>									
						<input type="checkbox" name="fshow" data-fname="<%=d.getFieldname()%>" data-ftype="<%=d.getSectype()%>" <%if(d.isIfshow()==true){%>checked="checked"<%}%>  value=<%=d.getFieldcode()%> /><%=d.getFieldname()%>
				<%}}}%>				
				</td></tr>		
		</table>
		</div>